import request from '@/utils/axios'


export function getGoodsList(params) {
  return request({
    url: '/backend/goods/list',
    method: 'get',
    params:params
  })
}
export function getOrders(params) {
  return request({
    url: '/backend/order/list',
    method: 'get',
    params:params
  })
}
export function getGoodsDetail(params) {
  return request({
    url: '/backend/goods/detail',
    method: 'get',
    params:params
  })
}
export function editGood(params) {
  return request({
    url: '/backend/goods/edit',
    method: 'post',
    data:params
  })
}
export function updateGood(params) {
  return request({
    url: '/backend/goods/update',
    method: 'post',
    data:params
  })
}

export function addGood(params) {
  return request({
    url: '/backend/goods/add',
    method: 'post',
    data:params
  })
}

export function getOrderList(params) {
  return request({
    url: '/backend/goods/orderList',
    method: 'get',
    params:params
  })
}

export function getPrizeList(reqData) {
  return request({
    url:'/backend/goods/prizeList',
    method: 'get',
    params: reqData
  })
}

export function createPrize(params) {
  return request({
    url: '/backend/goods/createPrize',
    method: 'post',
    data:params
  })
}


